﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="hcms.Admin.UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑用户</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link href="Styles/rightframe.css" rel="stylesheet" type="text/css" />
	<script src="/Scripts/jquery.min.161.js" type="text/javascript"></script>
	<script src="/Scripts/comm.js" type="text/javascript"></script>
	<script src="js/admin.js" type="text/javascript"></script>
<script type="text/javascript">
	var submitting = false;

	function onsave() {
		try {
			$(".submitstate").html("");

			//$("#idsubmit")[0].disabled = true; //?? 防止重复提交，不能防止页面刷新
			if (submitting) //?? 防止重复提交，不能防止页面刷新
				return;

			submitting = true;

			$("#idusername").verifyEmpty();
			$("#idemail").verifyEmail();
			$("#idpassword").verifyEmpty();
			$("#idroles").verifyEmpty();
			$("#cmd").val("save");
			$(".submitstate").html("......");
			form1.submit();
		}
		catch (err) {
			alert(err.message);
			submitting = false;
		}
	}

</script>
</head>
<body>
    <form id="form1" runat="server">
	<input type="hidden" id="cmd" runat="server" />
	<div class="topdiv">
		编辑用户&nbsp;&nbsp;&nbsp;
		<input type="button" onclick="onsave()" value="保存" />&nbsp;<span class="submitstate"><%=submitstate %></span>
		<%--所属栏目：<span id="htmcnames" runat="server"></span>--%>
	</div>
	<br />
	<table cellpadding="0" cellspacing="5" border="0">
		<tr>
			<td>用户ID：</td>
			<td id="idid" runat="server"></td>
		</tr>
		<tr>
			<td>用户名：</td>
			<td><input id="idusername" type="text" runat="server" /></td>
		</tr>
		<tr>
			<td>邮箱：</td>
			<td><input id="idemail" type="text" runat="server" /></td>
		</tr>
		<tr>
			<td>密码：</td>
			<td><input id="idpassword" type="text" runat="server" /></td>
		</tr>
		<tr>
			<td>角色：</td>
			<td><input id="idroles" type="text" runat="server" /></td>
		</tr>
		<tr>
			<td class="black">日期：</td>
			<td id="iddate" runat="server"></td>
		</tr>
		<tr>
			<td class="black">IP：</td>
			<td id="idip" runat="server"></td>
		</tr>
		<tr>
			<td></td>
			<td><br /><input type="button" onclick="onsave()" value="保存" />&nbsp;<span class="submitstate"><%=submitstate %></span></td>
		</tr>
	</table>
    </form>
</body>
</html>
